package com.rd.student.dashuju.wangbo.day08_01;

import java.util.Arrays;

public class Exercise2 {

    public static void main(String[] args) {
        int[] arr = {1, 3, 5, 7, 9, 11, 13, 15, 17};
        methodTest(arr);
    }
    
    public static void methodTest(int[] arr){
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] >= 11){
                arr[i] = arr[i] + 2;
                if (i == arr.length-1){
                    arr[i] = 0;
                }
            }
        }
        System.out.println(Arrays.toString(arr));
    }
}
